package com.yisu.auction.api.core.mapper;

import com.yisu.auction.api.domain.vo.indexPackageVos.SystemConfigVo;
import com.yisu.auction.ewf.entity.SystemConfig;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SystemConfigMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SystemConfig record);

    int insertSelective(SystemConfig record);

    SystemConfig selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SystemConfig record);

    int updateByPrimaryKey(SystemConfig record);

    /**
     * author: 赵杰
     * Business Description：获取APP初始加载时候的系统参数
     * @return
     */
    List<SystemConfigVo> getAppLoadConfig(@Param("appSign") String appSign);


    /**
     * author: 赵杰
     * Business Description：通过key值获取系统配置
     * @param key
     * @return
     */
    SystemConfigVo getSystemConfigByKey(@Param("key") String key);
}